// Analysis.h: interface for the CAnalysis class.
enum DENISTY_TYPE {SINGLE, AROUND, TOTAL, FREQUENCY};

#include <iostream>
#include <cstring>


#include "Matrix.h"
#include "Map.h" 

class CAnalysis
{
public:
	
	CAnalysis();
	~CAnalysis();
	
	int GetPosType(int x,int y,int maxX,int maxY);
	double GetMatAverage(int order, CHeader* matList,  int type);
	double GetFreqAverage(int order, CHeader* matList, int type);
	DENSITYMAP CalcDensity(CMap* Map, int indexType, CMatrix* Matrix, int matType, int outMapType);
//	DENSITYMAP AreaSize(CMap* Map, int indexType, CMatrix* Matrix, int matType, int outMapType);
//	DENSITYMAP AreaCluster(CMap* Map, int indexType, CMatrix* Matrix, int matType, int outMapType);
//	void FreqAnalysis(CMap* Map, CMatrix* Matrix);
	void PrintStatistics(CMap* Map, CMatrix* Matrix);

protected:

};
